﻿using NRules.Fluent.Dsl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himp.TaskScheduling
{
    public class SampleRule : Rule
    {
        public override void Define()
        {
            string input = null;

            When()
                .Match(() => input, s => s.StartsWith("Test"));

            Then()
                .Do(ctx => Console.WriteLine($"Rule matched with input: {input} :{ctx}"));
        }
    }
}
